<template>
	<router-view></router-view>
</template>

<script>
import moment from 'moment';
import 'moment/locale/zh-cn';
export default {
  name: 'app',
  components: {
  },
  data() {
	return {
		moment,
	};
  },
  watch:{
  	$route(n) {
  	    console.log(n.name);
  	}
  },
  methods:{
	  // 切换语言
	  changeLocale(e) {
		const localeValue = e.target.value;
		this.locale = localeValue;
		if (!localeValue) {
		  moment.locale('en');
		} else {
		  moment.locale('zh-cn');
		}
	  },
  }
}
</script>

<style>
#app {
}
html,body{
	margin: 0px;
	padding: 0px;
}
body::before{
	content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    will-change: transform;
    z-index: -1;
	overflow: hidden;
}
</style>
